package org.colin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.colin.dictPojo.DSubject;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 题目表 Mapper 接口
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-09
 */
public interface DSubjectMapper extends BaseMapper<DSubject> {

    HashMap selectSubjectById(Integer id);

    IPage<HashMap> selectSubjectIsPage(Page<HashMap> pageD, @Param("param") String param, @Param("type") Integer type, @Param("language") Integer language, @Param("convType") String convType);

    List<HashMap> selectSubjectByEnterId(@Param("id")Integer id,@Param("language") Integer language);
}
